﻿@model ExcellOnServices.Models.Utils.CompanyRegister
@{
	ViewBag.Title = "Register";
	ViewBag.Active = "Register";
}
<!-- .content -->
<div class="content content-info">
    <div class="container">
        <div class="page-header">
            <h1 id="overview">Sign Up Now <small>Lorem ipsum dolor sit amet</small></h1>
        </div>

        <p class="lead">
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras aliquet vulputate pharetra. Nullam sit amet tellus sagittis, aliquam nisi id, rhoncus velit. Nulla mattis a ligula a varius. Integer ipsum lorem, rhoncus eu adipiscing pellentesque, volutpat eget purus. Proin ut ante bibendum, dictum eros eget, semper lacus.
        </p>

        <br />

        <div class="row" style="width: 95%; margin: 0px auto;">
            @using (Html.BeginForm("Index", "Register", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" })) {				
                @Html.AntiForgeryToken()
                @Html.HiddenFor( model => model.RegisterAccount.Password, new {@Value = "pass"});
                <div class="form-group">
                    @Html.LabelFor(model => model.RegisterCompany.BrandName, "Brand Name (*)", new { @class = "control-label col-md-3" })
                    <div class="col-md-8">
                        @Html.TextBoxFor(model => model.RegisterCompany.BrandName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.RegisterCompany.BrandName)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.RegisterAccount.Email, "Email (*)", new { @class = "control-label col-md-3" })
                    <div class="col-md-8">
                        @Html.TextBoxFor(model => model.RegisterAccount.Email, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.RegisterAccount.Email)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.RegisterCompany.Address, "Address (*)", new { @class = "control-label col-md-3" })
                    <div class="col-md-8">
                        @Html.TextBoxFor(model => model.RegisterCompany.Address, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.RegisterCompany.Address)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.RegisterCompany.Telephone, "Telephone (*)", new { @class = "control-label col-md-3" })
                    <div class="col-md-8">
                        @Html.TextBoxFor(model => model.RegisterCompany.Telephone, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.RegisterCompany.Telephone)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(model => model.RegisterCompany.Description, "Description", new { @class = "control-label col-md-3" })
                    <div class="col-md-8">
                        @Html.TextAreaFor(model => model.RegisterCompany.Description, new { @rows = "3", @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.RegisterCompany.Description)
                    </div>
                </div>       
                        
                <div class="form-group">                    
                    <div class="col-md-offset-3 col-md-9">
                        @Html.ValidationSummary(true)
                        <input type="submit" value="Create an Account" class="btn-red" />
                    </div>
                </div>
			}
        </div>
        <!--/ .row -->

    </div>
    <!--/ .container -->
</div>
<!--/ .content -->
@if (ViewBag.Message != null) { 
<script type="text/javascript">
    alert("@ViewBag.Message");
</script>
}